export interface Document {
  id: number;
  name: string;
  content: string;
  parentId?: number | null;
  namespaceId?: number;
  sortNo?: number;
  children?: Document[];
  items?: DocumentItem[];
  createdTime?: string;
  updatedTime?: string;
}

export interface DocumentOption {
  id: number;
  name: string;
  content: string;
}

export interface DocumentItem {
  id?: number;
  documentId: number;
  name: string;
  content: string;
  sortNo?: number;
  createdTime?: string;
  updatedTime?: string;
}

export interface DocumentItemRequest {
  documentId: number;
  name: string;
  content: string;
  sortNo?: number;
}

export interface DocumentFavorite {
  id: number;
  documentId: number;
  documentName: string;
  createdTime: string;
}

export interface DocumentFavoriteRequest {
  documentId: number;
}